﻿@using Nop.Services.Customers;
@using Nop.Web.Framework.UI;
@using Nop.Core;
@using Nop.Core.Infrastructure
@using Nop.Core.Domain.Customers
@using Telerik.Web.Mvc.UI;

@{
    var currentCustomer = this.WorkContext.CurrentCustomer;


    //resources
    Html.AppendScriptParts("~/Scripts/jquery.mousewheel.min.js");
    Html.AppendScriptParts("~/Scripts/modernizr.js");
    Html.AppendCssFileParts("~/subsites/Commerce/Content/smoothness/jquery-ui-1.8.17.custom.css");

    var isAuthenticated = EngineContext.Current.Resolve<IWorkContext>().CurrentCustomer.IsRegistered();

    //current store ID
    int currentStoreId = Nop.Core.Domain.Stores.Store.AllStoreReservedId;
    //if (Url.RequestContext.RouteData.Values["controller"].ToString().Equals("catalog", StringComparison.InvariantCultureIgnoreCase) &&
    //    Url.RequestContext.RouteData.Values["action"].ToString().Equals("store", StringComparison.InvariantCultureIgnoreCase))
    if (Url.RequestContext.RouteData.Values.ContainsKey("storeId"))
    {
        currentStoreId = Convert.ToInt32(Url.RequestContext.RouteData.Values["storeId"].ToString());
    }

    //page title
    string pageTitle = "";
    if (!String.IsNullOrWhiteSpace(ViewBag.Title))
    {
        pageTitle = ViewBag.Title + " | ";
    }
    pageTitle += "SpotsHUB Shipping Service";
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>@pageTitle</title>
    <meta name="description" content="SpotsHUB/SpotsExpress are the fastest and simplest online shopping and delivery options for Greater Vancouver. Use our service to your advantage for a low rate!" />
    <meta name="keywords" content="SpotsHUB, SpotsEXPRESS, Business Solutions, Same-Day Delivery, Online Shopping, E-Commerce, Fast, Simple, User-Friendly, Greater Vancouver Regional District, Cheap Delivery Option, Online Order, Logistics Services" />
    <meta name="p:domain_verify" content="64d22bd769e42a26d22912df4b5cd43f" />

    <link rel="apple-touch-icon" sizes="57x57" href="/content/images/favicon/apple-touch-icon-57x57.png?v=LbbWkEmr9b">
    <link rel="apple-touch-icon" sizes="60x60" href="/content/images/favicon/apple-touch-icon-60x60.png?v=LbbWkEmr9b">
    <link rel="apple-touch-icon" sizes="72x72" href="/content/images/favicon/apple-touch-icon-72x72.png?v=LbbWkEmr9b">
    <link rel="apple-touch-icon" sizes="76x76" href="/content/images/favicon/apple-touch-icon-76x76.png?v=LbbWkEmr9b">
    <link rel="icon" type="image/png" href="/content/images/favicon/favicon-32x32.png?v=LbbWkEmr9b" sizes="32x32">
    <link rel="icon" type="image/png" href="/content/images/favicon/favicon-16x16.png?v=LbbWkEmr9b" sizes="16x16">
    <link rel="manifest" href="/content/images/favicon/manifest.json?v=LbbWkEmr9b">
    <link rel="shortcut icon" href="/favicon.ico?v=LbbWkEmr9b">
    <meta name="msapplication-TileColor" content="#da532c">
    <meta name="theme-color" content="#ffffff">

    <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href='//fonts.googleapis.com/css?family=Roboto:400,400italic,300,700' rel='stylesheet' type='text/css'>
    <script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
    <script>window.jQuery || document.write('<script src="/Scripts/jquery-1.11.2.min.js"><\/script>')</script>
    <script src="//code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
    <script>window.jQuery.ui || document.write('<script src="/Scripts/jquery-ui.min.js"><\/script>')</script>
    <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
    <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
    <script>if (typeof ($.fn.modal) === 'undefined') { document.write('<script src="/Scripts/bootstrap.min.js"><\/script>') }</script>
    @Html.NopCssFiles(this.Url, ResourceLocation.Head)
    @Html.NopScripts(this.Url, ResourceLocation.Head)

    <link href="/Content/css/SpotsHUB.common.min.css" rel="stylesheet" type="text/css">
    <link href="/Content/css/SpotsHUB.logistics.min.css" rel="stylesheet" type="text/css">
    <script src="/Scripts/SpotsHUB.common.js"></script>
    <script src="/Scripts/SpotsHUB.logistics.js"></script>

    <script>
        (function (i, s, o, g, r, a, m) {
            i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
                (i[r].q = i[r].q || []).push(arguments)
            }, i[r].l = 1 * new Date(); a = s.createElement(o),
            m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
        })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

        ga('create', 'UA-42486105-1', 'auto');
        ga('send', 'pageview');
    </script>

</head>
<body>
    <header id="header">
        <div class="container-fluid">
            <div class="row">
                <div class="container-fluid">
                    <div class="col-ms-6 col-md-4">
                        <div class="header-logo">
                            <a href="@Url.RouteUrl("HomePage")" class="logo-image"><img class="img-responsive" src="/Content/images/spotshub-new-logo.png"></a>
                        </div>
                    </div>
                    <div class="col-ms-6 col-md-4 col-md-offset-4">
                        <nav>
                            @Html.Action("HeaderLinks", "Common", new { isCheckout = ViewBag.IsCheckout, area = "Commerce" })
                        </nav>
                    </div>
                    <div class="clear"></div>
                    <div class="col-md-8 header-search-wrapper">
                        <div class="header-search">
                            @Html.Action("SearchBox", "Catalog", new { area = "Commerce", Cid = Request.QueryString["Cid"] })
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
            </div>
        </div>
    </header>
    <section>
        <div id="message-box"></div>
        <div class="container-fluid">
            <div class="logistics-wrapper row">

                <div class="logistics-order-menu">
                    <div class="logistics-menu-toggle">
                        <i class="fa fa-truck"></i>
                    </div>

                    <div class="order-new" title="Restart" data-action="clearOrder" data-url="@Url.Action("RemovePendingOrder", "Order")">
                        <i class="fa fa-undo"></i>
                    </div>
                    <div class="logistics-order-steps">

                    </div>
                    
                </div>
                <div class="clear"></div>

                <div class="logistics-menu row">
                    <nav class="logistics-menu-content">
                        <h3>Shipping</h3>
                        <ul>
                            <li><a href="@Url.RouteUrl("OrderLogistics")">Order Shipping</a></li>
                            <li><a href="@Url.RouteUrl("CustomerTracking")">Track Your Package</a></li>
                            <li><a href="@Url.RouteUrl("AboutExpress")">About SpotsHUB Express</a></li>
                            <li><a href="@Url.RouteUrl("ShippingRegulation")">Coverage Map & Delivery Time</a></li>
                            <li><a href="@Url.RouteUrl("OperatingHours")">Hours of Operation</a></li>
                            <li><a href="@Url.RouteUrl("QuestionsAndAnswers")">Q & A</a></li>
                        </ul>

                    </nav>
                </div>
                <div class="logistics-menu-toggle-bg"></div>
                <div class="logistics-content">
                    @RenderBody()
                </div>
                </>
            </div>
        </div>
    </section>
    <footer>
        @Html.Action("Footer", "Common", new { area = "Commerce" })
    </footer>
</body>
</html>
